package com.moore.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Community {

  @TableId(type = IdType.AUTO)
  private Long communityId;
  private long candidateId;
  private String communityTitle;
  private String communityType;
  private String communityContent;
  private String imagePath;
  @TableField(exist = false)
  private List<String> imageList;
  private String videoPath;
  private int commentCount;
  private int likeCount;
  private int starCount;
  private long reportStatus;
  private java.sql.Timestamp time;
  @TableField(exist = false)
  private Candidate candidate;
  @TableField(exist = false)
  private Boolean isLiked;
  @TableField(exist = false)
  private Boolean isStarred;
  @TableField(exist = false)
  private Boolean isCommented;

}
